import { _decorator, Button, Component, native, Node, NodeEventType } from "cc";
const { ccclass, property } = _decorator;

@ccclass("SettingControl")
export class SettingControl extends Component {
  start() {
    this.node.on(NodeEventType.TOUCH_END, () => {
      native.reflection.callStaticMethod(
        "com/cocos/game/AppActivity",
        "startWebView",
        "()V"
      );
    });
  }

  update(deltaTime: number) {}
}
